package com.easymin.weixin.entity;

import java.util.List;

/**
 * 合作伙伴
 *
 * @author Administrator
 */
public class Partner extends BaseEntity {

  private Long categoryId;// 主分类Id

  private Long intentId;// 子分类Id

  private String categoryAlias; // 主分类别名(临时字段)

  public String getCategoryAlias() {
    return categoryAlias;
  }

  public void setCategoryAlias(String categoryAlias) {
    this.categoryAlias = categoryAlias;
  }

  private String categoryName; // 主分类名称(临时字段)

  private String intentName; // 子分类名称(临时字段)

  public String getCategoryName() {
    return categoryName;
  }

  public void setCategoryName(String categoryName) {
    this.categoryName = categoryName;
  }

  public String getIntentName() {
    return intentName;
  }

  public void setIntentName(String intentName) {
    this.intentName = intentName;
  }

  private String name;// 合作伙伴名称

  private String phone;// 电话

  private String address;// 地址

  private String city;// 地址所在城市

  private String province;// 地址所在省份.

  private String county;// 地址所在区县

  private Double lat;// 地址所在纬度

  private Double lng;// 地址所在经度

  private String intro;// 内容介绍

  private static final long serialVersionUID = 1L;

  private String distanceStr; // 临时存储商家与司机距离(字符串)

  public String getDistanceStr() {
    return distanceStr;
  }

  public void setDistanceStr(String distanceStr) {
    this.distanceStr = distanceStr;
  }

  private Double distance; // 临时存储商家与司机距离

  public Double getDistance() {
    return distance;
  }

  public void setDistance(Double distance) {
    this.distance = distance;
  }


  private List<PartnerImg> list; // 图片集合(临时子段)

  public List<PartnerImg> getList() {
    return list;
  }

  public void setList(List<PartnerImg> list) {
    this.list = list;
  }

  public Long getCategoryId() {
    return categoryId;
  }

  public void setCategoryId(Long categoryId) {
    this.categoryId = categoryId;
  }

  public Long getIntentId() {
    return intentId != null ? intentId : 0;
  }

  public void setIntentId(Long intentId) {
    this.intentId = intentId;
  }

  public String getName() {
    return name != null ? name : "";
  }

  public void setName(String name) {
    this.name = name == null ? null : name.trim();
  }

  public String getPhone() {
    return phone != null ? phone : "";
  }

  public void setPhone(String phone) {
    this.phone = phone == null ? null : phone.trim();
  }

  public String getAddress() {
    return address != null ? address : "";
  }

  public void setAddress(String address) {
    this.address = address == null ? null : address.trim();
  }

  public String getCity() {
    return city != null ? city : "";
  }

  public void setCity(String city) {
    this.city = city == null ? null : city.trim();
  }

  public String getProvince() {
    return province != null ? province : "";
  }

  public void setProvince(String province) {
    this.province = province == null ? null : province.trim();
  }


  public String getCounty() {
    return county != null ? county : "";
  }

  public void setCounty(String county) {
    this.county = county == null ? null : county.trim();
  }

  public Double getLat() {
    return lat;
  }

  public void setLat(Double lat) {
    this.lat = lat;
  }

  public Double getLng() {
    return lng;
  }

  public void setLng(Double lng) {
    this.lng = lng;
  }

  public String getIntro() {
    return intro;
  }

  public void setIntro(String intro) {
    this.intro = intro == null ? null : intro.trim();
  }

}
